package com.snake.springboot.custom.service.port.adapter.feign;
import com.snake.springboot.custom.api.model.pay.PayActModel;
import com.snake.springboot.custom.api.model.pay.PayActRetModel;
import com.snake.springboot.custom.api.model.pay.PayMsgModel;
import org.snake.common.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>支付网关
 * 类{@code PaymentFeignClient} </br>
 * 创建时间2025/2/21 16:23
 * @author yangxt
 * @see
 */
@FeignClient(value = "snake-payment")
public interface PaymentFeignClient {

    @PostMapping("/payment/plat/pay-act/go-pay")
    ResponseResult<PayMsgModel> platGoPay(@RequestBody PayActModel model);

    @PostMapping("/payment/plat/pay-act/go-check")
    ResponseResult<PayMsgModel> platGoCheck(@RequestBody PayActModel model);

    @PostMapping("/payment/plat/pay-act/go-ret")
    ResponseResult<Object> platGoRet(@RequestBody PayActRetModel model);
}
